<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script>
		<style type="text/css">
			.one{
				list-style: none;
			}
			.one>li{
				border: 1px solid;
				display: inline-block;
				width: 60px;
				height: 30px;
				text-align: center;
				line-height: 30px;
				margin-left: 200px;
				position: relative;
				
			}
			.one>li>ul{
				margin: 0px;
				padding: 0px;
				text-align: left;
				border: 1px solid;
				list-style: none;
				position: absolute;
				left: 0px;
				width: 500px;
				height: 500px;
			}
			.title{
				margin-left: 240px;
				width: 1140px;
				height: 400px;
				border: 1px solid;
			}
			
		</style>
		<script type="text/javascript">
			$(function(){
				$('.title h1').hide();
				$('.one li').click(function(){
					console.log($('.one li').index());
				})
			})
			
		</script>
	</head>
	<body>
		<ul class="one">
			<li>列表1</li>
			<li>列表2</li>
			<li>列表3</li>
			<li>列表4</li>
			<li>列表5</li>
		</ul>
		<div class="title">
			<h1>内容一</h1>
			<h1>内容二</h1>
			<h1>内容三</h1>
			<h1>内容四</h1>
			<h1>内容五</h1>
		</div>
	</body>
</html>
